<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="jt.classic.system.context.ISystemContext"%>
<%@ page import="org.limp.mine.StringTool"%>
<%@ page import="jt.classic.system.tablequery.TableQuery"%>
<%@ page import="jt.classic.system.tablequery.TableQueryCenter"%>
<%
    String context = ISystemContext.getContextPath();

    String querykey = StringTool.checkString(request.getParameter("querykey"));
    
    String pageNO = StringTool.checkString(request.getParameter("pageNO"), "1");
    
	TableQueryCenter register = TableQueryCenter.getInstance();
	
	TableQuery query = register.getTableQuery(querykey);
	
	if(query == null){
%>
未找到通用查询{<span style="color:red;font-weight:bold;font-size:14px;"><%=querykey %></span>}定义
<%  }else{ %>	
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>jquery.groovelist</title>
	<jsp:include page="jquery.session.jsp"></jsp:include>
<jsp:include page="jquery.form.jsp"></jsp:include>
	<link rel="stylesheet" type="text/css" href="<%=context %>/resources/jquery/flexigrid/css/flexigrid.pack.css" />
	<script type="text/javascript" src="<%=context %>/resources/jquery/flexigrid/js/flexigrid.js"></script>	
	<script src="<%=context %>/resources/jquery/jqueryView/js/jquery.grooveview.js"></script>		
	<link href="<%=context %>/resources/jquery/grooveList/css/jquery.groovelist.css"
		rel="stylesheet" />	
	<script src="<%=context %>/resources/jquery/grooveList/js/jquery.groovelist.js?querykey=<%=querykey %>&pageNO=<%=pageNO%>"></script>	

    <%
	if(!StringTool.checkString(query.icssurl()).equals("")){
	%>
	<link rel="stylesheet" type="text/css" href="<%=context + query.icssurl()%>" />
	<%
		}
	%>
	
	<%
		if(!StringTool.checkString(query.ijsurl()).equals("")){
	%>
	<script src="<%=context + query.ijsurl()%>"></script>
	<%
		}
	%>
</head>
<body>
    <div id="ptable">
		<table id="flex1" style="display:none"></table>
	</div>
</body>
</html>
<%}%>